"""
Mathematical helper routines.
"""
